//
//  ZTDataViewController.m
//  zhibo8
//
//  Created by zzt on 16/11/19.
//  Copyright © 2016年 zzt. All rights reserved.
//

#import "ZTDataViewController.h"
#import "ZTNBADataTableViewController.h"
#import "ZTCBADataTableViewController.h"
#import "ZTZhongChaoDataTableViewController.h"
#import "ZTYingChaoDataTableViewController.h"
#import "ZTXiJiaDataTableViewController.h"
#import "ZTDeJiaDataTableViewController.h"
#import "ZTOuGuanDataTableViewController.h"

@interface ZTDataViewController ()

@end

@implementation ZTDataViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    self.view.backgroundColor = [UIColor greenColor];
    
    //1.设置导航栏
    [self setupNavigationBar];
    
    //2.添加标题view
    [self setupTitleView];
}

#pragma mark - 设置导航栏
- (void)setupNavigationBar {
    self.navigationItem.title = @"直播吧";
}

#pragma mark - 添加标题view
- (void)setupTitleView {
    // NBA
    ZTNBADataTableViewController *NBADataVc = [[ZTNBADataTableViewController alloc] init];
    NBADataVc.title = @"NBA";
    [self addChildViewController:NBADataVc];
    
    // CBA
    ZTCBADataTableViewController *CBADataVc = [[ZTCBADataTableViewController alloc] init];
    CBADataVc.title = @"CBA";
    [self addChildViewController:CBADataVc];
    
    // 中超
    ZTZhongChaoDataTableViewController *ZhongChaoDataVc = [[ZTZhongChaoDataTableViewController alloc] init];
    ZhongChaoDataVc.title = @"中超";
    [self addChildViewController:ZhongChaoDataVc];
    
    // 英超
    ZTYingChaoDataTableViewController *YingChaoDataVc = [[ZTYingChaoDataTableViewController alloc] init];
    YingChaoDataVc.title = @"英超";
    [self addChildViewController:YingChaoDataVc];
    
    // 西甲
    ZTXiJiaDataTableViewController *XiJiaDataVc = [[ZTXiJiaDataTableViewController alloc] init];
    XiJiaDataVc.title = @"西甲";
    [self addChildViewController:XiJiaDataVc];
    
    // 德甲
    ZTDeJiaDataTableViewController *DeJiaDataVc = [[ZTDeJiaDataTableViewController alloc] init];
    DeJiaDataVc.title = @"德甲";
    [self addChildViewController:DeJiaDataVc];
    
    // 欧冠
    ZTOuGuanDataTableViewController *OuGuanDataVc = [[ZTOuGuanDataTableViewController alloc] init];
    OuGuanDataVc.title = @"欧冠";
    [self addChildViewController:OuGuanDataVc];
}

@end
